/*
 * @Author: 张腾越
 * @Date: 2024-12-19 17:48:04
 * @LastEditors: 张腾越
 * @LastEditTime: 2025-02-25 22:13:37
 * @Description:
 * @FilePath: \vue3_admin_template\src\main.ts
 */
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//暗黑模式需要的样式
import 'element-plus/theme-chalk/dark/css-vars.css'
// svg插件需要的配置代码
import 'virtual:svg-icons-register'
import '@/styles/index.scss'
import router from './router'
import pinia from './store'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})
//引入自定义插件对象，注册整个项目全局组件
import gloablComponent from './components/index'
app.use(gloablComponent)
//安装仓库
app.use(pinia)
//注册模板路由
app.use(router)
//引入路由鉴权文件
import './permission'

app.mount('#app')
